package com.share.schedule.xxl.utils;


import com.xxl.job.core.context.XxlJobHelper;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class XxlJobLogUtil {
    public static void info(String msg, Object... var) {
        if (log.isInfoEnabled()) {
            log.info(msg, var);
            XxlJobHelper.log(msg, var);
        }
    }

    public static void error(String msg) {
        if (log.isErrorEnabled()) {
            log.error(msg);
            XxlJobHelper.log(msg);
        }
    }

    public static void error(String msg, Object var) {
        if (log.isErrorEnabled()) {
            log.error(msg, var);
            XxlJobHelper.log(msg, var);
        }
    }
}
